package com.sh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping("page")
public class ToPageController {

    @RequestMapping("{pageName}")
    public String toPage(@PathVariable String pageName){
        return "/WEB-INF/" + pageName + ".jsp";
    }
}
